package com.openbravo.format;

import java.text.ParseException;
import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class FormatsRESOURCE extends Formats
{
  private ResourceBundle m_rb;
  private String m_sPrefix;

  public FormatsRESOURCE(ResourceBundle paramResourceBundle, String paramString)
  {
    this.m_rb = paramResourceBundle;
    this.m_sPrefix = paramString;
  }

  protected String formatValueInt(Object paramObject)
  {
    try
    {
      return this.m_rb.getString(this.m_sPrefix + (String)paramObject);
    }
    catch (MissingResourceException localMissingResourceException)
    {
    }
    return (String)paramObject;
  }

  protected Object parseValueInt(String paramString)
    throws ParseException
  {
    return paramString;
  }

  public int getAlignment()
  {
    return 2;
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.format.FormatsRESOURCE
 * JD-Core Version:    0.6.0
 */